/********************************************
 * 功能说明: 
 * 模块名称: 
 * 系统名称: 
 * 软件版权: 
 * 系统版本: 1.0.0
 * 开发人员: zhangfb
 * 开发时间: 2019/4/9 17:07
 * 审核人员: 
 * 相关文档: 
 * 修改记录: 修改日期 修改人员 修改说明
 *********************************************/
package com.hyacinth.activity.entity;

import com.hyacinth.constant.Constants;
import com.hyacinth.entity.DataEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 奖品类
 * @author zhangfb
 * @version 1.0.0.1
 * @since JDK 1.8
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Entity
@Table(name = "hoyi_award")
public class Award extends DataEntity {
    private static final long serialVersionUID = 1L;
    /**活动编码**/
    @Column(nullable = false, length = 32)
    private String activityCode;
    /**奖品类型**/
    @Column(nullable = false, length = 2)
    private String type;
    /**奖品价格**/
    @Column(nullable = false, precision = 10, scale = 2, columnDefinition = "decimal(10,2) default 0.00")
    private BigDecimal rewardMoney;
    /**奖品数量**/
    @Column(nullable = false, length = 8)
    private Integer num;
}
